package com.siyuanren.gcocp.dto;

import com.siyuanren.gcocp.consts.GcocpConsts;
import com.siyuanren.gcocp.entity.WxCourseContent;
import lombok.Getter;
import lombok.Setter;

/**
 * Created by   anxing
 * Project_name gcocp-parent
 * Path         com.siyuanren.gcocp.dto
 * Date         2018/4/17
 * Time         11:31
 * Description
 */
@Setter
@Getter
public class ContentDTO extends WxCourseContent{
    private String teacherName;
    private String teacherImg;
    private Integer favId;

    public String getTeacherImg() {
        return GcocpConsts.RESOURCE_WEB + teacherImg;
    }

    public String getContentUrl() {
        return GcocpConsts.RESOURCE_WEB + super.getContentUrl();
    }
}
